home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
redakcyjne
/
programy
/
MediaMonkey 3.1.0.1256
/
MediaMonkey_3.1.0.1256.exe
/
{app}
/
Scripts
/
SwapArtistTitle.vbs
< prev
Wrap
Text File
|
2008-02-11
|
672b
|
26 lines
' A simple script that swaps the content of Title and Artist fields of selected tracks
Sub SwapArtistTitle
' Define variables
Dim list, itm, i, tmp
' Get list of selected tracks from MediaMonkey
Set list = SDB.CurrentSongList
' Process all selected tracks
For i=0 To list.count-1
Set itm = list.Item(i)
' Swap the fields
tmp = itm.Title
itm.Title = itm.ArtistName
If itm.AlbumArtistName = itm.ArtistName Then ' Modify Album Artist as well if is the same as Artist
itm.AlbumArtistName = tmp
End If
itm.ArtistName = tmp
Next
' Write all back to DB and update tags
list.UpdateAll
End Sub